<template>
	<view>
		<!-- <popup2></popup2> -->
		
		<div class="xjsy">
			<div class="gzt">
				<div class="gztbanner">
					<image mode="widthFix" class="uni-img-tag" src="https://iyouhaolife-1316622368.cos.ap-chongqing.myqcloud.com/h5/static/imgs/a31.png"></image>
				</div>
				<div class="gztnr">
					<ul class="menu">
						<li>
							<navigator class="item" url="/subPackages/gong_zuo_tai/merchant_manage">
								<image mode="widthFix" class="uni-img-tag" src="https://iyouhaolife-1316622368.cos.ap-chongqing.myqcloud.com/h5/static/imgs/a37.png"></image>
								<p>商户管理</p>
							</navigator>
						</li>
						<li>
							<navigator class="item" url="/subPackages/gong_zuo_tai/merchant_analysis">
								<image mode="widthFix" class="uni-img-tag" src="https://iyouhaolife-1316622368.cos.ap-chongqing.myqcloud.com/h5/static/imgs/a32.png"></image>
								<p>商户分析</p>
							</navigator>
						</li>
						<li>
							<navigator class="item" url="/subPackages/gong_zuo_tai/toos_bind">
								<image mode="widthFix" class="uni-img-tag" src="https://iyouhaolife-1316622368.cos.ap-chongqing.myqcloud.com/h5/static/imgs/a33.png"></image>
								<p>机具绑定</p>
							</navigator>
						</li>
						<li>
							<navigator class="item" url="/subPackages/gong_zuo_tai/transaction_search">
								<image mode="widthFix" class="uni-img-tag" src="https://iyouhaolife-1316622368.cos.ap-chongqing.myqcloud.com/h5/static/imgs/a34.png"></image>
								<p>交易查询</p>
							</navigator>
						</li>
						<li>
							<navigator class="item" url="/subPackages/gong_zuo_tai/stock_find">
								<image mode="widthFix" class="uni-img-tag" src="https://iyouhaolife-1316622368.cos.ap-chongqing.myqcloud.com/h5/static/imgs/a35.png"></image>
								<p>查看库存</p>
							</navigator>
						</li>
						<li>
							<navigator class="item" url="/subPackages/gong_zuo_tai/stock_manage">
								<image mode="widthFix" class="uni-img-tag" src="https://iyouhaolife-1316622368.cos.ap-chongqing.myqcloud.com/h5/static/imgs/a36.png"></image>
								<p>库存管理</p>
							</navigator>
						</li>
					</ul>
				</div>
			</div>
		</div>


		<yi-line :padding="26">
			<view>
				联盟商家
			</view>
		</yi-line>

		<view class="images-box">
			<view class="images">

				<view class="box" v-for="(item,index) in images" :key="index">
					<image class="item" :src="item" mode="scaleToFill"></image>
				</view>
			</view>

		</view>

	</view>
</template>

<script>
	import http from "@/common/http.js"

	export default {
		data() {
			return {
				images: []
			}
		},

		onLoad() {
			this.getData();
		},
		methods: {
			getData() {
				http.request({
					url: '/api/v1/getUnionBusinessList',
					success: ret => {
						console.log(ret);
						this.images = ret;
					}
				})
			}
		}
	}
</script>

<style lang="scss">
	.xjsy {
		padding-bottom: 30rpx;
	}

	.images-box {
		padding: 26rpx;
		width: 750rpx;
		box-sizing: border-box;

		.images {
			border-radius: 10rpx;
			box-sizing: border-box;
			display: flex;
			flex-direction: row;
			flex-wrap: wrap;
			justify-content: space-between;
			width: 698rpx;
			background-color: #fff;
			

			.box {
				box-sizing: border-box;
				background-color: #fff;
				padding: 10rpx;
				border-radius: 10rpx;
				overflow: hidden;
				width: 220rpx;
				height: 220rpx;
				display: flex;
				align-items: center;
				justify-content: center;


				.item {
					width: 110rpx;
					height: 110rpx;
				}
			}

		}
	}
</style>
